using System.ComponentModel.DataAnnotations;
using PowerManage.Entity.Dtos.Users;
using PowerManage.Entity.Enums;

namespace PowerManage.Entity.Dtos.Roles;

/// <summary>
/// 角色dto
/// </summary>
public class RoleDto
{
    public long Id { get; set; }

    /// <summary>
    /// 创建者
    /// </summary>
    public UserDto? Creator { get; set; }

    public long CreatorId { get; set; }

    public DateTime CreationTime { get; set; }

    public DateTime LastModificationTime { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    [Required]
    [MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    /// 状态，0：禁用，1：正常
    /// </summary>
    public RoleStatus Status { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(500)]
    public string? Remark { get; set; }
}